export const blob2binaryString = async (blob: Blob): Promise<string> => {
  return new Promise((resolve, reject) => {
    try {
      var fr = new FileReader(); //FileReader可以读取Blob内容
      fr.readAsBinaryString(blob); //二进制转换成ArrayBuffer
      fr.addEventListener("loadend", (e) => {
        resolve(fr.result as string);
      });
    } catch (error) {
      reject(error);
    }
  });
};
